import request from '@/utils/request'

// 查询其他科技创新竞赛列表
export function listCompete(query) {
  return request({
    url: '/compete/compete/list',
    method: 'get',
    params: query
  })
}

// 查询其他科技创新竞赛详细
export function getCompete(oticId) {
  return request({
    url: '/compete/compete/' + oticId,
    method: 'get'
  })
}

// 新增其他科技创新竞赛
export function addCompete(data) {
  return request({
    url: '/compete/compete',
    method: 'post',
    data: data
  })
}

// 修改其他科技创新竞赛
export function updateCompete(data) {
  return request({
    url: '/compete/compete',
    method: 'put',
    data: data
  })
}

// 删除其他科技创新竞赛
export function delCompete(oticId) {
  return request({
    url: '/compete/compete/' + oticId,
    method: 'delete'
  })
}
